<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<div id="app">
			<input type="text" v-model="message">
			<my-component :message='message'></my-component>
		</div>
		<script src="../js/vue.js" type="text/javascript" charset="utf-8"></script>
		<script>
			Vue.component('my-component', {
				props: ['message'],
				template: '<div>{{ message }}</div>'
			});
			var app = new Vue({
				el: '#app',
				data: {
					message: '外部数据'
				}
			})
		</script>
	</body>
</html>